home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8452 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: redstone.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Far pointers on BorlandC++
  5. Date: 4 Mar 1996 13:31:40 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4herbs$pbo@news.interpath.net>
  8. References: <4h4m5o$fmo@ci.ist.utl.pt>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. PEDRO NUNO RODRIGUES DA FONSECA (l42571@alfa.ist.utl.pt) wrote:
  13.  
  14.  
  15. :     I would like to know tips for optimizing the use of
  16. : "far" pointers on Borland C++ and avoiding pROBlems such as
  17. : corrupting system files .
  18.  
  19. Generate a Win32 console mode application. For most programs, it looks
  20. a LOT like a UNIX command line application. You get 4GB of memory, and
  21. do not have to deal with DOS' old legacy limitations. It's time to
  22. usher in the "modern" world of 80s 32-bit programming! :) Console mode
  23. programs have no far pointers. Hopefully in a year or so, near and far
  24. will join punched cards in the museum of bad computer memories.
  25.  
  26. :I would also like to know if there
  27. : is any remote way in wich I can allocate more than 1Mbyte of
  28. : memory.Everyone I know told me it is impossible but I found
  29. : it hard to believe that any decent compiler had such a severe
  30. : restraint.    
  31.  
  32.     1. It is not a restraint in the compiler, it's a restraint
  33.     of the hardware architecture! Borland's OS/2 and Win32
  34.     EXEs can address more than 1MB of memory.
  35.  
  36.     2. Borland has a Power Pack for DOS that allows DOS
  37.     programs to use DPMI memory. That's how you allocate
  38.     more than 1MB (actually you don't even get 1MB :))
  39.     in old legacy DOS.
  40.  
  41. Scott
  42.  
  43.